package factory.method;

public class Consumer {
    public static void main(String[] args) {
        Car car1=new AudiFactory().getCar();
        Car car2=new BMWFactory().getCar();
        Car car3=new JeepFactory().getCar();

        car1.name();
        car2.name();
        car3.name();


    }





}
